package org.nnxy.foodboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户食谱交互实体类
 */
@Data
@TableName("user_recipe_interaction")
public class UserRecipeInteraction {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private Integer userId;
    
    private Integer recipeId;
    
    private Integer browseCount;
    
    private Integer browseTime;
    
    private LocalDateTime lastBrowseTime;
    
    private Boolean isFavorite;
    
    private LocalDateTime favoriteTime;
    
    private BigDecimal rating;
    
    private String review;
    
    private Integer makeCount;
    
    private LocalDateTime lastMakeTime;
    
    private String satisfactionLevel;
    
    private Integer shareCount;
    
    @TableLogic
    @TableField(value = "del_flag")
    private String delFlag;
    
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private User user;
    
    @TableField(exist = false)
    private Recipe recipe;
} 